import resize from './resize' // 指令-容器大小改变时触发绑定函数
import drag from './drag' // 指令-拖拽+阻止拖拽

const directives = {
  resize,
  ...drag
}

export default {
  install(Vue) {
    Object.keys(directives).forEach((key) => {
      Vue.directive(key, directives[key])
    })
  }
}
